package com.example.math;

import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.Button;
import android.widget.EditText;
import android.widget.TextView;

public class FirstScreen extends Activity implements OnClickListener {
	private EditText userName;
	private Button btnGo;
	private TextView welcomeTxt;

	@Override
	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		setContentView(R.layout.first_screen);
		findViewById(R.id.go_button).setOnClickListener(this);
		userName = (EditText) findViewById(R.id.editText1);
		// welcomeTxt = (TextView) findViewById(R.id.welcome_text);
		// Typeface font = Typeface.createFromAsset(getAssets(), "");
		// welcomeTxt.setTypeface(font);

	}

	@Override
	public void onClick(View v) {
		String name = userName.getText().toString().trim();
		Intent intent = new Intent(this, SecondScreenList.class);
		startActivity(intent);
	}

}
